import {request} from "../../request";

export function getSequenceById(id){
    return request({
        url:`/lswms/sequence/${id}`,
        method:'get'
    })
}


export function getSequencePage(data){
    return request({
        url:'/lswms/sequence/page',
        method:'put',
        data:data
    })
}

export function putSequence(data){
    return request({
        url:'/lswms/sequence',
        method:'put',
        data:data
    })
}
export function postSequence(data){
    return request({
        url:'/lswms/sequence',
        method:'post',
        data:data
    })
}

export function deleteSequence(data){
    return request({
        url:`/lswms/sequence`,
        method:'delete',
        data:data
    })
}
export function exportSequence(data){
    return request({
        url:`/lswms/sequence/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}

export function getSequenceByType(type){
    return request({
        url:`/lswms/sequence/getSequence/${type}`,
        method:'get'
    })
}
